<!--{subtemplate jameson_read:touch/header}-->
<div class="header">
  <div class="weui-flex">
    <div class="weui-flex__item header_left" {if $_GET['result']} onclick="location.href='{eval echo mbreurl('book',$book['book_id']);}';" {else} onclick="javascript:history.go(-1);"{/if}>
      <i class="fa fa-chevron-left"></i>
    </div>
    <div class="weui-flex__item header_title"><a href="{eval echo mbreurl('book',$book['book_id']);}">[
    <!--{lang jameson_read:mulu}-->
    ]
    <!--{$book['book_name']}-->
    </a></div>
    <div class="weui-flex__item header_right flex-2">
      <a href="{eval echo mbreurl('search');}">
        <i class="fa fa-search"></i>
      </a>
      <a href="javascript:;" class="open-popup" data-target="#bottomtab">
        <i class="fa fa-fw fa-bars"></i>
      </a>
    </div>
  </div>
</div>

<div class="weui-panel weui-panel_access">
    {eval $vipzj = 0;}
      <div class="mtm mbm none" id="buytools">
        <form onsubmit="return jameson.buytijiao(this)" action="./plugin.php?id=jameson_read&contrl=index&act=plbuytid" method="post">
          <input type="hidden" name="formhash" value="{FORMHASH}">
          <input type="hidden" name="tidhidden" id="tidhidden">
          <input type="hidden" name="tidpricehidden" id="tidpricehidden">
          <input type="hidden" name="book_id" value="{$book['book_id']}">
          <div class="weui-btn-area">
                <button type="submit"  class="weui-btn weui-btn_primary">{lang jameson_read:goumai}</button>
          </div>
          <label for="buyquanxuan" class="weui-agree">
            <input id="buyquanxuan" type="checkbox" class="weui-agree__checkbox" onclick="jameson.buyquanxuan(this.checked)">
              <span class="weui-agree__text">
                 {lang jameson_read:quanxuan}
              </span>
              <span id="dangqianzongjia" class="text-danger" data-zongjia="0"></span>
          </label>
        </form>
      </div>
    <div class="muludiv">
        <div class="weui-tab">
          <div class="weui-navbar" style="z-index: 5">
            <a class="weui-navbar__item weui-bar__item--on" data-href="#tab1">
              <!--{lang jameson_read:zhengxu}-->
            </a>
            <a class="weui-navbar__item" data-href="#tab2">
              <!--{lang jameson_read:daoxu}-->
            </a>
          </div>
          <div class="weui-tab__bd pt10 zhangjie">
              <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
                  {loop $fenjuan $juan}
                    <div class="weui-panel__bd">
                      <div class="weui-cells weui-media-box">
                        <div class="weui-media-box_title">
                        <!--{$juan['j_title']}-->
                        </div>
                      <!--{loop $juan['zhang'] $key $sub}-->
                            <a class="weui-cell weui-cell_access" href="{eval echo mbreurl('thread',$sub['tid'],$sub['pid'],$_G['uid']);}">
                              <div class="weui-cell__bd">
                                {if $sub['price'] && $isread['showbuy']}
                                {eval $vipzj++;}
                                  <input onclick="jameson.buydanxuan(this.checked,{$sub['tid']},{$sub['price']})" type="checkbox" data-price="{$sub['price']}" data-tid="{$sub['tid']}" id="">
                                {/if}
                                <!--{$sub['subject']}-->
                              </div>
                              <div class="weui-cell__ft">
                                  <!--{if $sub['price']}-->
                                  VIP
                                  <!--{/if}-->
                              </div>
                            </a>
                      <!--{/loop}-->
                      </div>
                      </div>
                  <!--{/loop}-->
              </div>
              <div id="tab2" class="weui-tab__bd-item">
                {loop $revfenjuan $juan}
                  <div class="weui-panel__bd">
                    <div class="weui-cells weui-media-box">
                      <div class="weui-media-box_title">
                      <!--{$juan['j_title']}-->
                      </div>
                    <!--{loop $juan['zhang'] $key $sub}-->
                          <a class="weui-cell weui-cell_access zhangjie" href="{eval echo mbreurl('thread',$sub['tid'],$sub['pid'],$_G['uid']);}">
                            <div class="weui-cell__bd">
                              {if $sub['price'] && $isread['showbuy']}
                              {eval $vipzj++;}
                                <input onclick="jameson.buydanxuan(this.checked,{$sub['tid']},{$sub['price']})" type="checkbox" data-price="{$sub['price']}" data-tid="{$sub['tid']}" id="">
                              {/if}
                              <!--{$sub['subject']}-->
                            </div>
                            <div class="weui-cell__ft">
                                <!--{if $sub['price']}-->
                                VIP
                                <!--{/if}-->
                            </div>
                          </a>
                    <!--{/loop}-->
                    </div>
                    </div>
                <!--{/loop}-->
              </div>
          </div>
        </div>
    </div>
</div>
<!--{subtemplate jameson_read:touch/footer}-->